﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcDemo.Control
{
    public  static class HtmlExtender
    {
        //public static MvcHtmlString HilandTextBox(this HtmlHelper helper,string runMode)
        //{
        //    if (runMode == "display")
        //    {
        //        string resultString = string.Empty;
        //        var builder = new TagBuilder("input");
        //        builder.Attributes["type"] = "textbox";
        //        resultString = builder.ToString();
        //        return MvcHtmlString.Create(resultString);
        //    }
        //    else
        //    {
        //        return MvcHtmlString.Create("<span>ssss</span>");
        //    }
        //}


        public static MvcControlTextboxBuilder HilandTextBox(this HtmlHelper helper)
        {
            return new MvcControlTextboxBuilder(new MvcControlTextbox(helper));
        }

        public static MvcControlTest HiTest(this HtmlHelper helper)
        {
            return new MvcControlTest(helper);
        }
    }
}